package com.axiyue.trip.request;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;

public class Flights {

	private List<Flight> flight = new ArrayList<Flight>();

	@XmlElement(name="Flight")
	public List<Flight> getFlight() {
		return flight;
	}

	public void setFlight(List<Flight> flight) {
		this.flight = flight;
	}
	
	public void addFlight(Flight flightObj)
	{
		if(this.flight == null)
		{
			this.flight = new ArrayList<Flight>();
		}
		this.flight.add(flightObj);
	}

}
